package org.zhxy.zhxy.exception;

/**
 * 未授权异常类
 */
public class UnauthorizedException extends RuntimeException {
    /**
     * 状态码
     */
    private int code;
    /**
     * 异常信息
     */
    private String message;

    public UnauthorizedException(int code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}

